package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 角色表
 */
@Data
@Accessors(chain = true)
@TableName("sys_admin_roles")
public class SysAdminRoles implements Serializable {
    private static final long serialVersionUID = -3373288028020640026L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String roleName;

    @TableField(exist = false)
    private List<SysAdminMenus> permissions;

    @TableField(exist = false)
    private List<Integer> menuIdList;
}
